package edu.sysu.cshare.gui;

import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Dlg_About extends JDialog {
	public String getReturnValue(){
		return "abc";
	}
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Dlg_About dialog = new Dlg_About();
					dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					dialog.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the dialog.
	 */
	public Dlg_About() {
		
		setTitle("CShare 1.0");
		setBounds(100, 100, 305, 167);
		getContentPane().setLayout(null);
		setLocationRelativeTo(null);
		JLabel lblCshare = new JLabel("CShare 1.0");
		lblCshare.setBounds(88, 11, 109, 30);
		getContentPane().add(lblCshare);
		
		JButton btnNewButton = new JButton("确定");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Dlg_About.this.dispose();
			}
		});
		btnNewButton.setBounds(92, 103, 89, 23);
		getContentPane().add(btnNewButton);
		
		JLabel lblNewLabel = new JLabel("作者: CShare团队");
		lblNewLabel.setBounds(72, 35, 109, 28);
		getContentPane().add(lblNewLabel);
		
		JLabel lblZzhqqcom = new JLabel("联系方式: zzh1989829@qq.com");
		lblZzhqqcom.setBounds(38, 74, 217, 18);
		getContentPane().add(lblZzhqqcom);

	}
}
